package com.zs.source.service.impl;


import com.zs.source.domain.User;
import com.zs.source.mapper.UserMapper;
import com.zs.source.service.MapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 
 * @author zhshuo
 * @date 2021/07/27 15:37
 **/
@Service
public class MapperServiceImpl implements MapperService {

	@Autowired
	UserMapper userMapper;

	@Override
	public void list() {
		System.out.println(userMapper.userList());
	}

	@Override
	@Transactional
	public void insert() {
		userMapper.insert(new User("zps"));
	}
}
